import java.util.Comparator;

public class Test1 {
    public static void main(String[] args) {

    }
}
class ComString implements Comparable {
    @Override
    public int compare(Object o, Object t1) {
        String S1=(String)o;
        String S2=(String)t1;
       return S1.compareTo(S2);
    }
}